﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Facebook/Default.master" AutoEventWireup="true" CodeBehind="InviteFriends.aspx.cs" Inherits="WhsFacebook.Net.Web.Facebook.InviteFriends" %>
<%@ Register TagPrefix="fbc" Namespace="Facebook.Web.FbmlControls" Assembly="Facebook.Web" %>

<asp:Content ID="Content1" ContentPlaceHolderID="dashboard" runat="server">
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="body" runat="server">

<div runat="server" id="selectFriends" visible="false">
    <fb:request-form
        action="InviteFriends.aspx?doInvite=1" 
        method="POST" 
        invite="true" 
        type="Home Server" 
        content="<%= HttpUtility.HtmlAttributeEncode(this.GetInvitationContent()) %>"
        > 

        <fbc:MultiFriendSelector
            runat="server"
            id="friendSelector"
            showborder="false" 
            Bypass="cancel"
            actiontext="Invite your friends to use Windows Home Server on Facebook."
            /> 

    </fb:request-form>
</div>

<div runat="server" id="redirectToHome" visible="false">
    <fb:redirect url="." />
</div>

<div runat="server" id="friendsInvited" visible="false">
    <fb:success>
         <fb:message>Friends invited</fb:message>
         Thank you for inviting friends to Windows Home Server on Facebook.
         As soon as your friends joined this application they will be listed
         in your Windows Home Server on Facebook's friends tab.
    </fb:success>

    <fb:editor action="." labelwidth="100">
         <fb:editor-buttonset>
              <fb:editor-button value="Back to News page"/>
         </fb:editor-buttonset>
    </fb:editor>
</div>


</asp:Content>
